
#include "PostRequest.h"

PostRequest::PostRequest() {
	method = "POST";
	uri = "";
	version = "HTTP/1.1";
}

PostRequest::PostRequest(stringstream& s) : Request(s)
{ //runs Request(s) logic, then PostRequest(s) logic
        method = "POST";
}

PostRequest PostRequest::operator =(PostRequest& rhs) {
	method = rhs.method;
	uri  = rhs.uri;
	version = rhs.version;
	headers = rhs.headers; // May need to iterate through headers and add in items.
	return *this;
}
Response PostRequest::processRequest()
{
    Response resp;
    resp.statusCode = "403";
    resp.reasonPhrase = "Forbidden";
    resp.MakeHeader();
    return resp;
}
void PostRequest::PrintInfo()
{
}
